package chaoyue.study.feature.record;

/**
 * record 也可以作为局部变量来使用
 * 其实就是简化的内部类
 */
public class RecordTest6 {
    public static void main(String[] args) {
        record MyRecord(Integer id, String name) {
        }
        MyRecord r1 = new MyRecord(1, "chaoyue");
        System.out.println(r1);
    }
}
